<?php if (!defined('MAX_ON')){echo "<h1>ACCESS DENIED</h1>You cannot access this file directly.";exit();} ?>
<?php if ($template_hook=='start'){ ?>
<?php }elseif ($template_hook=='1'){ ?>
		<!-- login form -->
		<div align="center">
		<table class="forum-board-forum-login" cellpadding="0" cellspacing="0">
			<tr><td class="forum-topic-subject"><?php echo $lang['login_title']; ?></td></tr>
			<tr><td class="forum-index-stats-sub"> </td></tr>
		</table>
		
		<form name="login" method="post" action="<?php echo max_link("index.php?page=login", "login"); ?>">
		
		<table class="forum-index-login" cellpadding="0" cellspacing="0">
			<tr>
				<td class="forum-jump-content forum-index-top forum-index-bottom">
						<div class="smallfont"><?php echo $lang['login_des']; ?></div>
						<ol>
							<li class="smallfont"><?php echo $lang['login_des1']; ?></li>
							<li class="smallfont"><?php echo $lang['login_des2']; ?></li>
							<li class="smallfont"><?php echo $lang['login_des3']; ?></li>
						</ol>
				<fieldset class="fieldset">
				<legend><?php echo $lang['login_title']; ?></legend>
					<table cellpadding="0" cellspacing="3" border="0" align="center">
					<tr>
						<td><?php echo $lang['login_name']; ?><br /><input type="text" class="bginput" name="name" size="50" accesskey="u" tabindex="1" /></td>
					</tr>
					<tr>
						<td><?php echo $lang['login_pass']; ?><br /><input type="password" class="bginput" name="password" size="50" tabindex="1" /></td>
					</tr>
					<tr>
						<td>
							<input type="hidden" name="referer" value="<?php echo "$referer"; ?>" />			
							<input type="hidden" name="token_id" value="<?php echo "$token_id"; ?>" />
							<input type="hidden" name="<?php echo "$token_name"; ?>" value="<?php echo "$token"; ?>" />
							<span style="float:<?php echo $lang['header_left']; ?>"><a href="<?php echo max_link("index.php?page=password", "password"); ?>"><?php echo $lang['login_forgot']; ?></a></span>
							<label for="cb_cookieuser"><input type="checkbox" id="remember" name="remember" checked /><?php echo $lang['login_remember']; ?></label>
						</td>
					</tr>
					</table>
				</fieldset>
				<div class="smallfont"><?php echo $lang['login_register']; ?></div>
				</td>
			</tr>
			<tr>
				<td class="forum-index-stats-header forum-index-top">
					<center><input type="submit" class="img-submit" value="<?php echo $lang['button_login']; ?>" />
					<input type="reset" class="img-submit" value="<?php echo $lang['button_reset']; ?>" /></center>
				</td>
			</tr>
		</table>
		
		</form>
		
		<table class="forum-index-forum-login" cellpadding="0" cellspacing="0">
			<tr><td class="forum-index-forum-footer-contents"> </td></tr>
		</table>
		</div>
<?php }elseif ($template_hook=='end'){ ?>
<?php } ?>
